﻿<Window x:Class="UI.About"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="About" Height="260" Width="321" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" ResizeMode="NoResize">
	<Window.Resources>
		<SolidColorBrush x:Key="Link" Color="#FF488DC5"/>
		<Cursor x:Key="LinkCursor">Hand</Cursor>
	</Window.Resources>
    <DockPanel LastChildFill="False">
		<StackPanel DockPanel.Dock="Top">
			<TextBlock Margin="0,0,0,10" FontSize="24" FontWeight="Bold" TextWrapping="Wrap"><Run Text="Book Cataloger"/></TextBlock>
			<WrapPanel HorizontalAlignment="Left">
				<TextBlock FontWeight="Bold" Text="License: " TextWrapping="Wrap"/>
				<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" TextDecorations="Underline" Foreground="{DynamicResource Link}" MouseUp="licenseLink_MouseUp" Name="licenseLink" Cursor="{DynamicResource LinkCursor}"><Run Text="Microsoft Public License (Ms-PL)"/></TextBlock>
			</WrapPanel>
			<WrapPanel>
				<TextBlock FontWeight="Bold" Text="Developer: " TextWrapping="Wrap"/>
				<TextBlock Foreground="{DynamicResource Link}" Text="Artur Herczeg" TextDecorations="Underline" TextWrapping="Wrap" Name="developerLink" MouseUp="developerLink_MouseUp" Cursor="{DynamicResource LinkCursor}" />
			</WrapPanel>
			<WrapPanel>
				<TextBlock TextWrapping="Wrap" Text="Homepage: " FontWeight="Bold"/>
				<TextBlock Text="http://bookcataloger.codeplex.com/" TextWrapping="Wrap" TextDecorations="Underline" Foreground="{DynamicResource Link}" Name="homepageLink" MouseUp="homepageLink_MouseUp" Cursor="{DynamicResource LinkCursor}" />
			</WrapPanel>
			<WrapPanel Margin="0,10,0,0">
				<TextBlock FontWeight="Bold" Text="Version: " TextWrapping="Wrap"/>
				<TextBlock x:Name="version" TextWrapping="Wrap" MinWidth="20"/>
			</WrapPanel>
            <Expander Header="Modules" MaxHeight="80">
                <ListBox x:Name="Modules" />
            </Expander>
		</StackPanel>
		<Button Width="75" Content="OK" DockPanel.Dock="Bottom" Margin="0,0,0,10" IsDefault="True" Click="OkButton_Click" />
	</DockPanel>
</Window>
